﻿using System.Collections.Generic;
using System.Linq;
using AFT.Parking.Foundation.Calculate;

namespace AFT.Parking.WebSite.Models
{
    public class Coordinate
    {
        public int Id { get; set; }
        public string ProjectImgUrl { get; set; }
        public List<Shape> Shapes { get; set; }
        public List<Marker> Markers { get; set; }
    }

    public class Shape
    {
        //public int Id { get; set; }
        public List<string> Points { get; set; }
        public List<Circle> Circles { get; set; }
    }
    public class Circle
    {
        public string X { get; set; }
        public string Y { get; set; }
    }
    public class Marker
    {
        public int Id { get; set; }
        public string Name { get; set; }
        public Offset Offset { get; set; }
        public Position Position { get; set; }
        public bool IsEnable { get; set; }
        public bool IsFork { get; set; }
        public bool IsLift { get; set; }
        public int[] AccessTo { get; set; }
        public int ScanCode { get; set; }
        public int PrintScanCodeCount { get; set; }
    }

    public class AccessTo
    {
        public int Id { get; set; }
        public double Weight { get; set; }
    }

    public class Offset
    {
        public double Top { get; set; }
        public double Left { get; set; }
    }

    public class Position
    {
        public double Top { get; set; }
        public double Left { get; set; }
    }

    public class Lift
    {
        public int Id { get; set; }
        public int ParkingId { get; set; }
        public string Name { get; set; }
        public int[] CrossTo { get; set; }
    }

}